import 'package:wch/generated/json/base/json_field.dart';
import 'package:wch/generated/json/device_version_entity.g.dart';
import 'dart:convert';
export 'package:wch/generated/json/device_version_entity.g.dart';

@JsonSerializable()
class DeviceVersionEntity {
	String? code;
	String? msg;
	DeviceVersionData? data;

	DeviceVersionEntity();

	factory DeviceVersionEntity.fromJson(Map<String, dynamic> json) => $DeviceVersionEntityFromJson(json);

	Map<String, dynamic> toJson() => $DeviceVersionEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class DeviceVersionData {
	int? id;
	String? versionName;
	String? versionNum;
	String? minimumVersionNum;
	String? versionText;
	String? versionUrl;
	String? checkText;
	String? versionStatus;
	String? versionType;
	String? createTime;
	String? updateTime;

	DeviceVersionData();

	factory DeviceVersionData.fromJson(Map<String, dynamic> json) => $DeviceVersionDataFromJson(json);

	Map<String, dynamic> toJson() => $DeviceVersionDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}